<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 280px;
            height: 50px;
            line-height: 50px;
            border: 1px solid red;
            margin: 100px auto;
            white-space: nowrap;
            overflow: hidden;
            overflow-x: scroll;
        }
        .box a{
            padding: 2px 5px;
            text-decoration: none;
            color: #fdc91b;
        }
        .box::-webkit-scrollbar{
            display: none;

        }
    </style>
</head>
<body>
<div class="box">
    <a href="">手机</a>
    <a href="">电脑</a>
    <a href="">手表</a>
    <a href="">耳机</a>
    <a href="">笔记本</a>
    <a href="">空调</a>
    <a href="">洗衣机</a>
    <a href="">风扇</a>
    <a href="">净化机</a>
</div>
</body>
</html>